﻿using System;
using System.Data;
using System.Configuration;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Cn.Edwon.Web.Session;
using System.Collections;
using Cn.Edwon.Web.Ac;
using System.Collections.Generic;

namespace Cn.Cellula.MiniTopSite {
    public class SessActor:ISessActor {
        #region ISessActor 成员

        private string _ID;
        public string ID {
            get {
                return _ID;
            }
            set {
                _ID = value;
            }
        }
        private string _LoginName;
        public string LoginName {
            get {
                return _LoginName;
            }
            set {
                _LoginName = value;
            }
        }
        private string _Password;
        public string Password {
            get {
                return _Password;
            }
            set {
                _Password = value;
            }
        }
        private DateTime _LastDate;
        public DateTime LastDate {
            get {
                return _LastDate;
            }
            set {
                _LastDate = value;
            }
        }
        private string _LastIP;
        public string LastIP {
            get {
                return _LastIP;
            }
            set {
                _LastIP = value;
            }
        }
        private string _Email;
        public string Email {
            get {
                return _Email;
            }
            set {
                _Email = value;
            }
        }
        private Hashtable _Parms;
        public System.Collections.Hashtable Parms {
            get {
                return _Parms;
            }
            set {
                _Parms = value;
            }
        }
        private string _UserName;
        public string UserName {
            get {
                return _UserName;
            }
            set {
                _UserName = value;
            }
        }

        private Object _Src;
        public object Src {
            get {
                return _Src;
            }
            set {
                _Src = value;
            }
        }

        public String _OwnerKey;
        public string OwnerKey {
            get {
                return _OwnerKey;
            }
            set {
                _OwnerKey = value;
            }
        }
        private String _ActivateCode;
        public string ActivateCode {
            get {
                return _ActivateCode;
            }
            set {
                _ActivateCode = value;
            }
        }
        private int _ActivatedFlg;
        public int ActivatedFlg {
            get {
                return _ActivatedFlg;
            }
            set {
                _ActivatedFlg = value;
            }
        }

        private UserPower _Power;
        public UserPower Power {
            set {
                _Power = value;
            }
            get {
                return _Power;
            }
        }

        public bool IsActivated {
            get {
                return (_ActivatedFlg==1);
            }
        }


        #endregion

        private IList<String> _SecurityUrls;
        public IList<String> SecurityUrls {
            get {
                return _SecurityUrls;
            }
            set {
                _SecurityUrls = value;
            }
        }
    }
}
